ls = [1, 3, 6, 33, 43, 56, 67, 89, 97]
for i in ls:
    t = 0
    if i > 1:
        for j in range(2, i):
            if i % j == 0:
                t = 1
                break
        if t == 0:
            ls.remove(i)
print(ls)
